package com.glebusheg.ui
{
	import flash.events.Event;
	
	/**
	 * ...
	 * @author Gleb Volkov
	 */
	public class PanelEvent extends Event 
	{
		public static const SELECT:String = "select";
		
		private var _panel:Panel;
		
		public function PanelEvent(type:String, panel:Panel) 
		{ 
			_panel = panel;
			super(type);
		}

		public function get panel():Panel 
		{
			return _panel;
		}
		
		public override function clone():Event 
		{ 
			return new PanelEvent(type, _panel);
		} 
		
		public override function toString():String 
		{ 
			return formatToString("PanelEvent", "type", "bubbles", "cancelable", "eventPhase"); 
		}

	}
	
}